package io.renren.modules.work.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.work.dao.ArticalmessageDao;
import io.renren.modules.work.entity.ArticalmessageEntity;
import io.renren.modules.work.service.ArticalmessageService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * describe:
 * create @ kylin  2019/03/14
 */
@Service("articalmessageService")
public class ArticalmessageServiceImpl extends ServiceImpl<ArticalmessageDao, ArticalmessageEntity> implements ArticalmessageService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ArticalmessageEntity> page = this.page(
                new Query<ArticalmessageEntity>().getPage(params),
                new QueryWrapper<ArticalmessageEntity>()
        );

        return new PageUtils(page);
    }

}
